import { defineStore } from 'pinia'

export const useCountStore = defineStore('count', {
  //1.state 定义需要集中管理的数据
  state: () => ({
    cout: 11,
  }),
  //2.对定义的数据进行修改
  actions: {
    increment() {
      this.count++
    },
    decrement() {
      this.count--
    },
  },
})
